package com.fhz.a2102mvi.module

import com.fhz.a2102mvi.api.FengServerApi
import com.fhz.a2102mvi.utils.RetrofitFactory
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

/**
 * 时间:2023/10/18
 * @author Mr.Feng
 * 简述: TODO
 */
@Module
@InstallIn(SingletonComponent::class)
object NetWorkModule {

    @Provides
    @Singleton
    fun privorderRetrofit() : FengServerApi{
        return RetrofitFactory.getRetrofitFactory().create<FengServerApi>(FengServerApi::class.java)
    }
}